import { Rule } from "./types";

export const Flake8DjangoRuleList: Rule[] = [
    {
        code: "DJ001",
        name: "django-nullable-model-string-field",
        descEn: "Avoid using null=True on string-based fields such as",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DJ003",
        name: "django-locals-in-render-function",
        descEn: "Avoid passing locals() as context to a render function",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DJ006",
        name: "django-exclude-with-model-form",
        descEn: "Do not use exclude with ModelForm, use fields instead",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DJ007",
        name: "django-all-with-model-form",
        descEn: "Do not use __all__ with ModelForm, use fields instead",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DJ008",
        name: "django-model-without-dunder-str",
        descEn: "Model does not define __str__ method",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DJ012",
        name: "django-unordered-body-content-in-model",
        descEn: "Order of model's inner classes, methods, and fields does not follow the Django Style Guide: {elem_type} should come before",
        descCn: "",
        autoFix: false,
    },
    {
        code: "DJ013",
        name: "django-non-leading-receiver-decorator",
        descEn: "@receiver decorator must be on top of all the other decorators",
        descCn: "",
        autoFix: false,
    },
];